<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>快答答题 - 首页</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edff 100%);
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            padding-bottom: 70px;
        }
        
        /* 统一标题栏样式 */
        #header {
            background: linear-gradient(90deg, #2575fc, #6a11cb);
            padding: 12px 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header_con {
            display: flex;
            align-items: center;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }
        
        .top_tit {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .right_div {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .right_div i {
            font-size: 24px;
            color: white;
            transition: transform 0.3s ease;
        }
        
        .right_div:hover i {
            transform: scale(1.1);
        }
        
        .news {
            position: absolute;
            top: -3px;
            right: -3px;
            width: 18px;
            height: 18px;
            background: #ff4757;
            border-radius: 50%;
            color: white;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        /* 主内容区域 */
        #content_div {
            max-width: 800px;
            margin: 0 auto;
            padding: 15px;
        }
        
        /* 轮播图 */
        .top_pic {
            margin-bottom: 20px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .carousel-container {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            height: 180px;
        }
        
        .carousel-image {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity 0.8s ease;
            background-size: cover;
            background-position: center;
        }
        
        .carousel-image.active {
            opacity: 1;
        }
        
        .carousel-num {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 10;
        }
        
        .carousel-num span {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .carousel-num span.active {
            background: white;
            transform: scale(1.2);
        }
        
        /* 答题按钮 - 优化部分 */
        .ans_btn {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }
        
        .ans_btn a {
            display: inline-block;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .ans_btn a:hover {
            transform: scale(1.05);
        }
        
        .btn-container {
            display: inline-block;
            position: relative;
            perspective: 1000px;
        }
        
        .start-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            box-shadow: 
                0 10px 25px rgba(37, 117, 252, 0.5),
                0 0 0 10px rgba(255, 255, 255, 0.1),
                0 0 0 20px rgba(255, 255, 255, 0.05),
                inset 0 -5px 15px rgba(0, 0, 0, 0.2),
                inset 0 5px 10px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: pulse 2s infinite;
        }
        
        .start-btn:hover {
            transform: translateY(-5px) rotate(2deg);
            box-shadow: 
                0 15px 30px rgba(37, 117, 252, 0.6),
                0 0 0 10px rgba(255, 255, 255, 0.15),
                0 0 0 20px rgba(255, 255, 255, 0.08),
                inset 0 -7px 20px rgba(0, 0, 0, 0.25),
                inset 0 7px 15px rgba(255, 255, 255, 0.4);
            animation: none;
        }
        
        .start-btn::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
            transform: rotate(30deg);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .start-btn:hover::before {
            opacity: 1;
        }
        
        .start-btn-icon {
            font-size: 60px;
            color: white;
            margin-bottom: 15px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
        }
        
        .start-btn-text {
            font-size: 30px;
            font-weight: 800;
            color: white;
            letter-spacing: 2px;
            text-shadow: 
                0 2px 4px rgba(0,0,0,0.3),
                0 0 10px rgba(255,255,255,0.5);
            transition: transform 0.3s ease;
        }
        
        .start-btn:hover .start-btn-icon {
            transform: scale(1.1) rotate(-5deg);
        }
        
        .start-btn:hover .start-btn-text {
            transform: scale(1.05);
        }
        
        .btn-subtitle {
            margin-top: 18px;
            font-size: 16px;
            font-weight: 600;
            color: #6a11cb;
            text-align: center;
            text-shadow: 0 1px 2px rgba(255,255,255,0.8);
            animation: colorShift 3s infinite;
        }
        
        @keyframes pulse {
            0% { box-shadow: 
                    0 10px 25px rgba(37, 117, 252, 0.5),
                    0 0 0 10px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(255, 255, 255, 0.05); }
            50% { box-shadow: 
                    0 10px 30px rgba(37, 117, 252, 0.7),
                    0 0 0 10px rgba(255, 255, 255, 0.15),
                    0 0 0 20px rgba(255, 255, 255, 0.1); }
            100% { box-shadow: 
                    0 10px 25px rgba(37, 117, 252, 0.5),
                    0 0 0 10px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(255, 255, 255, 0.05); }
        }
        
        @keyframes colorShift {
            0% { color: #6a11cb; }
            50% { color: #2575fc; }
            100% { color: #6a11cb; }
        }
        
        /* 小按钮区域 */
        .small_xx_btn {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .xx_btn_border {
            background: white;
            border-radius: 16px;
            padding: 15px;
            height: 120px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .xx_btn_border:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            background: linear-gradient(135deg, #e6f0ff, #ffffff);
        }
        
        .xx_btn_border em {
            font-size: 16px;
            font-weight: 700;
            color: #2c3e50;
            display: block;
            margin-bottom: 8px;
        }
        
        .xx_btn_border p {
            font-size: 12px;
            color: #7f8c8d;
            line-height: 1.4;
            max-width: 70%;
        }
        
        .xx_btn_border .icon-container {
            position: absolute;
            right: 10px;
            bottom: 10px;
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #2575fc;
            background: rgba(37, 117, 252, 0.1);
            transition: all 0.3s ease;
        }
        
        .xx_btn_border:hover .icon-container {
            transform: rotate(10deg) scale(1.1);
            color: #6a11cb;
        }
        
        /* 排名区域 */
        .ph {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding: 10px 15px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .ph:hover {
            transform: translateX(5px);
            background: #e6f0ff;
        }
        
        .blue_box {
            width: 5px;
            height: 20px;
            background: #2575fc;
            border-radius: 3px;
            margin-right: 10px;
        }
        
        .word_title {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            flex: 1;
        }
        
        .enter_jt i {
            font-size: 18px;
            color: #7f8c8d;
        }
        
        .pm_box {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .pm_xx {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f5ff;
            transition: all 0.3s ease;
        }
        
        .pm_xx:hover {
            background: rgba(37, 117, 252, 0.03);
            transform: translateX(5px);
            border-radius: 8px;
        }
        
        .pm_xx:last-child {
            border-bottom: none;
        }
        
        .pm_xx em {
            width: 60px;
            font-size: 14px;
            font-weight: 500;
            color: #7f8c8d;
        }
        
        .tx_box {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e6f0ff;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #2575fc;
        }
        
        .pm_xx p {
            flex: 1;
            font-size: 16px;
            font-weight: 500;
            color: #2c3e50;
        }
        
        .pm_xx text {
            font-size: 16px;
            font-weight: 700;
            color: #ff7e5f;
        }
        
        /* 统一底部导航栏样式 */
        .bottom_box {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            padding: 10px 0;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            z-index: 100;
            border-top: 1px solid #eaeaea;
        }
        
        .tab_bar {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .tab_bar:hover {
            transform: translateY(-5px);
        }
        
        .tab_bar i {
            font-size: 22px;
            margin-bottom: 4px;
            display: block;
            margin: 0 auto 5px;
            color: #7f8c8d;
            transition: all 0.3s ease;
        }
        
        .tab_bar p {
            font-size: 12px;
            color: #7f8c8d;
            transition: all 0.3s ease;
        }
        
        .tab_bar.active i {
            color: #2575fc;
        }
        
        .tab_bar.active p {
            color: #2575fc;
            font-weight: 600;
        }
        
        .tab_bar.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: #2575fc;
            border-radius: 2px;
        }
        
        /* 响应式设计 */
        @media (max-width: 480px) {
            .small_xx_btn {
                grid-template-columns: 1fr;
            }
            
            .xx_btn_border {
                height: auto;
                padding: 15px;
            }
            
            .ans_btn .start-btn {
                width: 180px;
                height: 180px;
            }
            
            .start-btn-icon {
                font-size: 48px;
            }
            
            .start-btn-text {
                font-size: 24px;
            }
            
            .carousel-container {
                height: 150px;
            }
            
            .tab_bar {
                padding: 6px 0;
            }
            
            .tab_bar i {
                font-size: 20px;
                margin-bottom: 3px;
            }
        }
    </style>
</head>
<body>
    <!-- 标题栏 -->
    <header id="header">
        <div class="header_con">
            <div class="top_tit">快答答题</div>
            <div class="right_div" onclick="document.location.href='message.html';">
                <i class="fas fa-bell"></i>
                <div class="news">3</div>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <div id="content_div" class="">
        <!-- 轮播图 -->
        <div class="top_pic">
            <div class="carousel-container">
                <div class="carousel-image active" style="background: linear-gradient(90deg, #4facfe, #00f2fe);">
                    <div style="padding: 20px; color: white; height: 100%; display: flex; flex-direction: column; justify-content: center;">
                        <h3 style="font-size: 20px; margin-bottom: 10px;">每日答题挑战</h3>
                        <p>参与每日挑战，赢取积分奖励</p>
                    </div>
                </div>
                <div class="carousel-image" style="background: linear-gradient(90deg, #fa709a, #fee140);">
                    <div style="padding: 20px; color: white; height: 100%; display: flex; flex-direction: column; justify-content: center;">
                        <h3 style="font-size: 20px; margin-bottom: 10px;">月度大奖等你拿</h3>
                        <p>每月积分最高者获得千元手机</p>
                    </div>
                </div>
                <div class="carousel-image" style="background: linear-gradient(90deg, #43e97b, #38f9d7);">
                    <div style="padding: 20px; color: white; height: 100%; display: flex; flex-direction: column; justify-content: center;">
                        <h3 style="font-size: 20px; margin-bottom: 10px;">年终超级大奖</h3>
                        <p>全年积分最高者赢取十万SUV</p>
                    </div>
                </div>
                <span class="carousel-num">
                    <span class="active"></span>
                    <span></span>
                    <span></span>
                </span>
            </div>
        </div>
        
        <!-- 答题按钮 - 优化部分 -->
        <div class="ans_btn">
            <a href="answer.html">
                <div class="btn-container">
                    <div class="start-btn">
                        <div class="start-btn-icon">
                            <i class="fas fa-lightbulb"></i>
                        </div>
                        <div class="start-btn-text">开始答题</div>
                    </div>
                </div>
                <div class="btn-subtitle">点击开始挑战你的知识极限！</div>
            </a>
        </div>
        
        <!-- 小功能按钮 -->
        <div class="small_xx_btn">
            <div class="xx_btn">
                <div class="xx_btn_border" onclick="document.location.href='ans_outline.html';">
                    <em>答题大纲</em>
                    <p>大纲每日看一秒，得分跑三跑</p>
                    <div class="icon-container">
                        <i class="fas fa-book-open"></i>
                    </div>
                </div>
            </div>
            <div class="xx_btn">
                <div class="xx_btn_border" onclick="document.location.href='prize-information.html';">
                    <em>奖品信息</em>
                    <p>每月千元手机，年终一台十万SUV</p>
                    <div class="icon-container">
                        <i class="fas fa-gift"></i>
                    </div>
                </div>
            </div>
            <div class="xx_btn">
                <div class="xx_btn_border" onclick="document.location.href='ranking.html';">
                    <em>历次排名</em>
                    <p>看看你几次摘得桂冠</p>
                    <div class="icon-container">
                        <i class="fas fa-trophy"></i>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 总排名区域 -->
        <div class="ph" onclick="document.location.href='ranking_ls.html';">
            <div class="blue_box"></div>
            <div class="word_title">总排名</div>
            <div class="enter_jt">
                <i class="fas fa-chevron-right"></i>
            </div>
        </div>
        
        <!-- 排名列表 -->
        <div class="pm_box">
            <div class="pm_xx">
                <em>第一名</em>
                <div class="tx_box">A</div>
                <p>学霸小王</p>
                <text>12800分</text>
            </div>
            <div class="pm_xx">
                <em>第二名</em>
                <div class="tx_box">B</div>
                <p>知识达人</p>
                <text>11500分</text>
            </div>
            <div class="pm_xx">
                <em>第三名</em>
                <div class="tx_box">C</div>
                <p>答题高手</p>
                <text>10200分</text>
            </div>
            <div class="pm_xx">
                <em>第四名</em>
                <div class="tx_box">D</div>
                <p>学习先锋</p>
                <text>9800分</text>
            </div>
            <div class="pm_xx">
                <em>第五名</em>
                <div class="tx_box">E</div>
                <p>智慧之星</p>
                <text>9200分</text>
            </div>
        </div>
    </div>
    
    <!-- 统一底部导航 -->
    <div class="bottom_box">
        <div class="tab_bar active" id="index" onclick="document.location.href='index.html';">
            <i class="fas fa-home"></i>
            <p>首页</p>
        </div>
        <div class="tab_bar" id="jf" onclick="document.location.href='integral.html';">
            <i class="fas fa-coins"></i>
            <p>积分</p>
        </div>
        <div class="tab_bar" id="call" onclick="document.location.href='personal-callme.html';">
            <i class="fas fa-headset"></i>
            <p>联系我们</p>
        </div>
        <div class="tab_bar" id="my" onclick="document.location.href='personal-center.html';">
            <i class="fas fa-user"></i>
            <p>我的</p>
        </div>
    </div>

    <script>
        // 轮播图功能
        document.addEventListener('DOMContentLoaded', function() {
            const carouselImages = document.querySelectorAll('.carousel-image');
            const dots = document.querySelectorAll('.carousel-num span');
            let currentIndex = 0;
            
            // 初始显示第一张图
            carouselImages[0].classList.add('active');
            dots[0].classList.add('active');
            
            // 轮播函数
            function slideTo(index) {
                carouselImages.forEach(img => img.classList.remove('active'));
                dots.forEach(dot => dot.classList.remove('active'));
                
                carouselImages[index].classList.add('active');
                dots[index].classList.add('active');
                currentIndex = index;
            }
            
            // 添加点按事件
            dots.forEach((dot, index) => {
                dot.addEventListener('click', () => {
                    slideTo(index);
                });
            });
            
            // 自动轮播
            setInterval(() => {
                let nextIndex = (currentIndex + 1) % carouselImages.length;
                slideTo(nextIndex);
            }, 3000);
            
            // 导航栏激活状态
            // 设置首页为激活状态
            document.getElementById('index').classList.add('active');
            
            // 为底部导航添加点击效果
            const tabBars = document.querySelectorAll('.tab_bar');
            tabBars.forEach(tab => {
                tab.addEventListener('click', function() {
                    tabBars.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                });
            });
        });
    </script>
</body>
</html>